package com.horoscope.astrology.zodiac.signs.free.utilsimport android.graphics.Rectimport android.view.Viewimport androidx.recyclerview.widget.RecyclerViewclass CommentDecoration(h: Float, w: Float) :    RecyclerView.ItemDecoration() {    private var height = SysUtils.rp(h)    private var width = SysUtils.rp(w)    override fun getItemOffsets(        outRect: Rect,        view: View,        parent: RecyclerView,        state: RecyclerView.State    ) {        super.getItemOffsets(outRect, view, parent, state)        if (parent.getChildAdapterPosition(view) != 0) {            outRect.left = width            outRect.right = width            outRect.top = height        }        if (parent.getChildAdapterPosition(view) == parent.adapter!!.itemCount - 1) {            outRect.bottom = height        }    }}